package in.co.codedoc.tomcat;

import in.co.codedoc.cg.annotations.HasProperties;
import in.co.codedoc.cg.annotations.IsMappedToJSON;
import in.co.codedoc.cg.annotations.Property;

@IsMappedToJSON
@HasProperties
({
	@Property(name="message",datatype=String.class),
	@Property(name="errorCode",datatype=String.class)
})
public class ErrorResponse
	extends ErrorResponseBase
{
	public ErrorResponse()
	{
		this("","error");
	}
	
	public ErrorResponse(String message)
	{
		this(message,"error");
	}

	public ErrorResponse(String message,String errorCode)
	{
		SetMessage(message);
		SetErrorCode(errorCode);
	}
}
